from selenium import webdriver
from selenium.webdriver.common.by import By

# 使用浏览器驱动，自动启动浏览器
driver = webdriver.Chrome()

url = "https://www.baidu.com"
driver.get(url)

driver.close()